package com.smart.model.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.smart.common.PageQueryRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zhanghong
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel("项目临时任务请求模型")
public class ProjectTempTaskRequest extends PageQueryRequest implements Serializable {
    @ApiModelProperty("任务名称/编号")
    private String nameOrTaskNum;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("提交开始时间")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("提交结束时间")
    private Date endTime;
    @ApiModelProperty("任务状态 UN_START未开始、RUNNING进行中、FINISH已结束、REVOKE已撤销、CANCEL已作废")
    private String status;
}
